import requests

from api import SYSTEM_URL, SESSION


class GetAllUser:

    def __init__(self):
        self.url = SYSTEM_URL + "/apis/api.console.halo.run/v1alpha1/users?page=1&size=20&fieldSelector=name%21%3DanonymousUser&fieldSelector=name%21%3Dghost&keyword="
        self.headers = {
            'Cookie': SESSION
        }

    def get_all_user(self):

        response = requests.get(self.url, headers=self.headers)
        return response
